<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="test.js">
    var xiao = xiaom;
    console.log(xiao);
    alert(xiao);
</script>
<body>

</body>
</html>